//
//  HLHelper.h
//  YueYue
//
//  Created by hulu001 on 2023/5/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLHelper : NSObject

/// 获取实例
+ (instancetype)shareInstance;

@property (strong,  nonatomic) NSMutableDictionary *cache;

+ (BOOL)isMale;

+ (BOOL)isFemale;

+ (void)logout;

+ (void)userInfo;


+ (NSString *)area;

+ (NSString *)language;

+ (NSString *)getCurrentTimestamp;

+ (NSString *)systemLang;

+ (NSString *)systemArea;

/** IMEI */
+ (NSString *)IMEI;

+ (CGSize)sizeWithImageOriginSize:(CGSize)originSize
                              minSize:(CGSize)imageMinSize
                          maxSize:(CGSize)imageMaxSize;

+ (NSString*)addTokenParamWithBaesURL:(NSString *)baseURL;

+ (NSString *)changeVideoPhasset:(PHAsset*)asset;

+ (void)shanYanLoadWithCallback:(dispatch_block_t)callback;

+ (BOOL)authorizationStatus;

+ (BOOL)IMFilterWithSessionId:(NSString *)sessionId;

+ (void)getLocalManager;

+ (CGSize)stringSizeWithFont:(UIFont *)font str:(NSString*)str maxWidth:(CGFloat)maxWidth maxHeight:(CGFloat)maxHeight;

+ (NSString *)showTime:(NSTimeInterval)msglastTime showDetail:(BOOL)showDetail;

+ (NSString *)showDateString:(NSString *)dateString;

+ (NSTimeInterval)currentTimeStamp;

+ (NSString *)showTimeInCall:(int)seconds;

+ (NSInteger)getTimeIntervalFromStartTime:(NSTimeInterval)startTime toEndTime:(NSTimeInterval)endTime;

// 恋爱铃相关
+ (void)toggleLoveBell;
+ (BOOL)loveBell;

// 今日恋爱铃开关
+ (void)toggleLoveBellToday;
+ (BOOL)loveBellToday;

@end

NS_ASSUME_NONNULL_END
